package org.lys.varargus;

public class Varargus {
	/*
	 */
	public int add(int... args){
		System.out.println("add int...");
		int sum=0;
		for (int i : args) {
			sum+=i;
		}
		return sum;
	}
	
	/*
	public int add(int[] args){
		int sum=0;
		for (int i : args) {
			sum+=i;
		}
		return sum;
	}
	*/
	
	public int add(int arg0,int arg1){
		System.out.println("add arg0,arg1");
		return arg0+arg1;
	}

}
